// 定义图片路径
export const IMAGES = {
  // 首页轮播图
  PROFILE_DEMO: 'https://images.unsplash.com/photo-1581472723648-909f4851d4ae?auto=format&fit=crop&w=1920&h=1080&q=80',
  PROFILE_DEMO2: 'https://images.unsplash.com/photo-1504384764586-bb4cdc1707b0?auto=format&fit=crop&w=1920&h=1080&q=80',
  PROFILE_DEMO3: 'https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&h=1080&q=80',

  // 博客图片
  BLOG_DEFAULT: 'https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=800&h=400&q=80',
  BLOG_AI: 'https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=800&h=400&q=80',
  BLOG_TECH: 'https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=800&h=400&q=80',

  // 项目展示图片
  PROJECT_DEFAULT: 'https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=800&h=400&q=80',
  PROJECT_AI: 'https://images.unsplash.com/photo-1485827404703-89b55fcc595e?auto=format&fit=crop&w=800&h=400&q=80',
  PROJECT_DATA: 'https://images.unsplash.com/photo-1504868584819-f8e8b4b6d7e3?auto=format&fit=crop&w=800&h=400&q=80',

  // 团队成员头像
  TEAM_DEFAULT: 'https://images.unsplash.com/photo-1580489944761-15a19d654956?auto=format&fit=crop&w=400&h=400&q=80',
  TEAM_MEMBER1: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=400&h=400&q=80',
  TEAM_MEMBER2: 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?auto=format&fit=crop&w=400&h=400&q=80'
}

// 图片加载错误时的默认图片
export const DEFAULT_IMAGE = 'https://images.unsplash.com/photo-1618005198919-d3d4b5a92ead?auto=format&fit=crop&w=800&h=400&q=80'

// 图片加载错误处理
export function handleImageError(event: Event) {
  const img = event.target as HTMLImageElement
  img.src = DEFAULT_IMAGE
} 